(function () {
    if (navigator.userAgent.indexOf("Chrome") > -1) {
        var chromeBrowser = navigator.userAgent.match(/Chrome\/([\d.]+)/);
        if (chromeBrowser[1] < "28.0.1478.0") {
            window.location.href = UAP_SERVER_NAME + "browser-warning.html";
        }
        window.browser = chromeBrowser[0];
    } else if (navigator.userAgent.indexOf("Firefox")) {
        var FirefoxBrowser = navigator.userAgent.match(/Firefox\/([\d.]+)/);
        if (FirefoxBrowser[1] < "37.0") {
            window.location.href = UAP_SERVER_NAME + "browser-warning.html";
        }
        window.browser = FirefoxBrowser[0];
    } else {
        window.location.href = UAP_SERVER_NAME + "browser-warning.html";
    }
    if (screen.width < 1280) {
        showMsg('warn', '请调整您电脑的分辨率，屏幕宽度不能低于1280!');
    }
})();